# Copyright (c) 2024-2025 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

panda_ets_interop_js_gtest(ets_interop_js__class_method_sts_to_ts
    CPP_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/class_method.cpp
    ETS_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/class_method.ets
    JS_SOURCES
        ${CMAKE_CURRENT_SOURCE_DIR}/check_abstract_class_method.js
        ${CMAKE_CURRENT_SOURCE_DIR}/check_child_class_method.js
        ${CMAKE_CURRENT_SOURCE_DIR}/check_child_protected_class_method.js
        ${CMAKE_CURRENT_SOURCE_DIR}/check_interface_class_method.js
        ${CMAKE_CURRENT_SOURCE_DIR}/check_private_class_method.js
        ${CMAKE_CURRENT_SOURCE_DIR}/check_protected_class_method.js
        ${CMAKE_CURRENT_SOURCE_DIR}/check_put_another_instance_class.js
        ${CMAKE_CURRENT_SOURCE_DIR}/check_user_class_method.js
        ${CMAKE_CURRENT_SOURCE_DIR}/class_method.test.js
    COMPILATION_JS_WITH_CJS_ON
)
